<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sales_shipment_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sales_shipment_id" data-rule="required" data-source="sales_shipment/getDataById" class="form-control selectpage" name="row[sales_shipment_id]" type="text" value="{$row.sales_shipment_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">客户需求:</label>
        <div class="col-xs-12 col-sm-8">
            <table id="customer-demand-table" class="table table-bordered table-hover" style="display:none;">
                <thead>
                    <tr>
                        <th>产品名称</th>
                        <th>客户名称</th>
                        <th>产品ID</th>
                        <th>客户ID</th>
                        <th>单价</th>
                        <th>数量</th>
                        <th>金额</th>
                    </tr>
                </thead>
                <tbody></tbody>
            </table>
            <input type="hidden" id="c-customer_demand_json" name="row[customer_demand_json]" value="{$row.customer_demand_json|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Customer_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-customer_name" class="form-control" name="row[customer_name]" type="text" value="{$row.customer_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Product_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-product_name" class="form-control" name="row[product_name]" type="text" value="{$row.product_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Unit_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-unit_price" class="form-control" step="0.01" name="row[unit_price]" type="number" value="{$row.unit_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Quantity')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-quantity" class="form-control" name="row[quantity]" type="number" value="{$row.quantity|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reconciliation_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reconciliation_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[reconciliation_date]" type="text" value="{$row.reconciliation_date}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Receivable_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-receivable_amount" class="form-control" step="0.01" name="row[receivable_amount]" type="number" value="{$row.receivable_amount|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Actual_received_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-actual_received_amount" class="form-control" step="0.01" name="row[actual_received_amount]" type="number" value="{$row.actual_received_amount|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Received_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-received_amount" class="form-control" step="0.01" name="row[received_amount]" type="number" value="{$row.received_amount|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Payment_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-payment_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[payment_date]" type="text" value="{$row.payment_date}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Unpaid_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-unpaid_amount" class="form-control" step="0.01" name="row[unpaid_amount]" type="number" value="{$row.unpaid_amount|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Invoice_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-invoice_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[invoice_time]" type="text" value="{$row.invoice_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Invoice_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-invoice_amount" class="form-control" step="0.01" name="row[invoice_amount]" type="number" value="{$row.invoice_amount|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Invoice_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-invoice_number" class="form-control" name="row[invoice_number]" type="text" value="{$row.invoice_number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Paid_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-paid_amount" class="form-control" step="0.01" name="row[paid_amount]" type="number" value="{$row.paid_amount|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Settlement_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-settlement_status" data-rule="required" class="form-control" name="row[settlement_status]">
                {volist name="settlementStatusList" id="vo"}
                <option value="{$key}" {if condition="$row.settlement_status eq $key"}selected{/if}>{$vo}</option>
                {/volist}
            </select>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
